package com.dhh.util.manager;

import android.content.Context;
import android.database.Cursor;

public class DailyPlanDBHelper extends DataBaseHelper{
	public final static String PERIOD_BREAKFAST = "BREAKFAST";
	public final static String PERIOD_LUNCH = "LUNCH";
	public final static String PERIOD_DINNER = "DINNA";
	public final static String PERIOD_DAIRY = "DAIRY";	
	
	public static DailyPlanDBHelper instance;
	
	public DailyPlanDBHelper(Context context) {
		super(context);
	}

	public Cursor getPlanItems(){
		return getReadableDatabase().query("DAILY_FOOD_PLAN", new String[] {"_id","food_name","food_group","service","energe"}, null, null, null,null, null);
	}
	
	public static DailyPlanDBHelper getInstance(Context context){
		if(instance==null){
			instance = new DailyPlanDBHelper(context);
		}
		
		return instance;
	}
}
